import { createRouter, createWebHistory } from "vue-router";

const routes = [
  {
    path: "/",
    name: "App",
    component: () => import("../App.vue"),
    meta: {},
  }
];

const router = createRouter({
  history: createWebHistory(),
  routes,
});

router.beforeEach((to, from, next) => {
  // 不同的页面有不同的title标题
  // console.log(to, from);
//   if (to.meta.title) {
//     //判断是否有标题
//     document.title = to.meta.title;
//   }
//   next();
});

export default router;